package com.qfedu.lc.minio.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Date: 2023/10/20 11:46
 */
@Configuration // 表名当前类是配置类
public class MinioConfig {
    public static final String URL="http://121.40.154.254/";  // 阿里云服务器ip
    private final String KEY="R2BDAC9G1HZPTE98WRHR";               // 替换为自己的key 和 security
    private final String SEC="VworN9nR9cY+HAfo4xAHzeMHBAgJEIDBUXacrmur";

    @Bean
    public MinioClient createMC(){
        return new MinioClient(URL,9001,KEY,SEC);
    }
}
